import { StyleSheet } from 'react-native'
import React from 'react'
import Cell from './Cell'
import { getDomain } from '../utils/tools'
import { addStyles } from '../utils/tools'

const UserCell = ({ data, style, link, borderBottom }) => {
  return (
    <Cell style={addStyles(styles.user, style)} leftText={data?.nickname}
       leftIcon={getDomain(data?.avatar)} link={link} borderBottom={borderBottom}></Cell>
  )
}

export default UserCell

const styles = StyleSheet.create({
  user: {
    paddingVertical: 20
  }
})